package com.codestudy.vo;

import com.codestudy.entity.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel(value = "success", description = "文章副表")
public class NoteVO implements Serializable {
    private int id;
    private int userId;
    private String title;
    private String msg;
    private List<String> img;
    private List<String> annex;
    private int type;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
    private String outline;
    /**
     * 点赞数
     */
    private Integer likeCount = 0;

    /**
     * 收藏数
     */
    private Integer collectionCount = 0;

    /**
     * 作者个人信息
     */
    private UserVO authorInfo;
}
